import Home from '@/views/Home.vue'
import information from '@/views/Information.vue'
import classify from '@/views/Classify.vue'
import mine from '@/views/Mine.vue'
import AppFooter from '@/components/AppFooter.vue'
import AppHeader from '@/components/AppHeader.vue'
import Login from '@/views/Login.vue'
import Register from '@/views/Register.vue'
import Order from '@/views/Order.vue'
import List from '@/views/List.vue'
import Detail from '@/views/Detail.vue'

export default [
  {
    path: '/',
    redirect: '/home',
    meta: {
      isNav: false
    }
  },
  {
    path: '/home',
    name: 'home',
    components: {
      default: Home,
      footer: AppFooter,
      header: AppHeader
    },
    meta: {
      isNav: true,
      title: '首页',
      icon: '&#xe6b9;'
    }
  },
  {
    path: '/information',
    name: 'information',
    components: {
      default: information,
      footer: AppFooter,
      header: AppHeader
    },
    meta: {
      isNav: true,
      title: '消息',
      icon: '&#xe6b2;'
    }
  },
  {
    path: '/classify',
    name: 'classify',
    components: {
      default: classify,
      footer: AppFooter,
      header: AppHeader
    },
    meta: {
      isNav: true,
      title: '分类',
      icon: '&#xe6aa;'
    }
  },
  {
    path: '/mine',
    name: 'mine',
    components: {
      default: mine,
      footer: AppFooter,
      header: AppHeader
    },
    meta: {
      isNav: true,
      title: '我的',
      icon: '&#xe6b1;'
    }
  },
  {
    path: '/login',
    name: 'login',
    components: {
      default: Login,
      header: AppHeader
    },
    meta: {
      isNav: false,
      title: '登录'
    }
  },
  {
    path: '/register',
    name: 'register',
    components: {
      default: Register,
      header: AppHeader
    },
    meta: {
      isNav: false,
      title: '注册'
    }
  },
  {
    path: '/order',
    name: 'order',
    components: {
      default: Order,
      header: AppHeader
    },
    meta: {
      isNav: false,
      title: '订单'
    }
  },
  {
    path: '/list',
    name: 'list',
    components: {
      default: List,
      header: AppHeader
    },
    meta: {
      isNav: false
    }
  },
  {
    path: '/detail',
    name: 'detail',
    components: {
      default: Detail,
      header: AppHeader
    },
    meta: {
      isNav: false
    }
  }
]
